package org.one.afternoon.service.impl;

import org.one.afternoon.domain.Participator;
import org.one.afternoon.mapper.ParticipatorMapper;
import org.one.afternoon.service.ParticipatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ParticipatorServiceImpl implements ParticipatorService {
    @Autowired
    private ParticipatorMapper participatorMapper;

    @Override
    public List<Participator> findAll() {
        return participatorMapper.findAll();
    }

    @Override
    public List<Participator> queryOne(Participator participator) {
        return participatorMapper.queryOne(participator);
    }

    @Override
    public boolean insert(Participator participator) {
        return participatorMapper.insertOne(participator);
    }

    @Override
    public boolean delete(Integer index) {
        return participatorMapper.delete(index);
    }

    @Override
    public boolean update(Participator participator) {
        return participatorMapper.update(participator);
    }
}
